package com.zr.eim.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 二维码扫码对象 eim_analysis_qr_code_scanning
 * 
 * @author peihang
 * @date 2022-10-21
 */
public class EimAnalysisQrCodeScanning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    private Long id;

    /** 证件号 */
    @Excel(name = "证件号")
    private String personId;

    /** 二维码名称 */
    @Excel(name = "二维码名称")
    private String qrName;

    /** 二维码地址 */
    @Excel(name = "二维码地址")
    private String qrAddress;

    /** 经度 */
    @Excel(name = "经度")
    private Long longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Long latitude;

    /** 扫码时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "扫码时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date qrTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setQrName(String qrName) 
    {
        this.qrName = qrName;
    }

    public String getQrName() 
    {
        return qrName;
    }
    public void setQrAddress(String qrAddress) 
    {
        this.qrAddress = qrAddress;
    }

    public String getQrAddress() 
    {
        return qrAddress;
    }
    public void setLongitude(Long longitude) 
    {
        this.longitude = longitude;
    }

    public Long getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(Long latitude) 
    {
        this.latitude = latitude;
    }

    public Long getLatitude() 
    {
        return latitude;
    }
    public void setQrTime(Date qrTime) 
    {
        this.qrTime = qrTime;
    }

    public Date getQrTime() 
    {
        return qrTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personId", getPersonId())
            .append("qrName", getQrName())
            .append("qrAddress", getQrAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("qrTime", getQrTime())
            .toString();
    }
}
